@extends('family::layout')

@section('title', '评测列表')

@section('content')
    <div class="card border-no">
        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th scope="col">#</th>
                        <th scope="col">{{ __('评测工具/量表') }}</th>
                        <th scope="col">{{ __('生理年龄') }}</th>
                        <th scope="col">{{ __('发展年龄') }}</th>
                        <th scope="col">{{ __('评测时间') }}</th>
                        {{--<th scope="col">{{ __('评测阶段') }}</th>--}}
                    </tr>
                    </thead>
                    <tbody>
                    @if(isset($list))
                        @foreach($list as $idx => $item)
                            <tr>
                                <th scope="row">{{ $idx + 1 }}</th>
                                <td>{{ !empty($item->tool) ? $item->tool->name : $item->tool_id }}</td>
                                <td>{{ $item->age }}</td>
                                <td>{{ $item->agedevelop }}</td>
                                <td>{{ $item->assess_time }}</td>
                                {{--<td>{{ $stage[$item->stage] }}</td>--}}
                            </tr>
                        @endforeach
                    @endif
                    </tbody>
                </table>
            </div>
            <div class="row">
                <div class="clearfix"></div>
                <div class="col-md-12 col-sm-12 col-xs-12 pull-right">

                </div>
            </div>
        </div>
    </div>
@stop